package ar.republicagroup.gestion.services.impl;

import ar.republicagroup.gestion.dao.BancoDAO;
import ar.republicagroup.gestion.entities.Banco;
import ar.republicagroup.gestion.services.BancoServices;
import java.util.List;
import javax.swing.DefaultComboBoxModel;

public class BancoServicesImpl implements BancoServices {
    
    
    private BancoDAO bancoDao;

    public void setBancoDao(BancoDAO bancoDao) {
        this.bancoDao = bancoDao;
    }

    @Override
    public List<Banco> findEntities() {
        return bancoDao.findEntities();
    }

    @Override
    public String insert(Banco beanBanco) {
       return bancoDao.insert(beanBanco);
    }

    @Override
    public String update(Banco beanBanco) {
       return bancoDao.update(beanBanco);
    }

    @Override
    public Banco get(Integer idbanco) {
       return bancoDao.get(idbanco);
    }

    @Override
    public String delete(Integer idbanco) {
       return bancoDao.delete(idbanco);
    }

    @Override
    public Banco findBancoByName(String banco_name) {
       return bancoDao.findBancoByName(banco_name);
    }

    @Override
    public Banco findBancoByCodCuenta(String cod_cuenta, boolean es_sucursal) {
       return bancoDao.findBancoByCodCuenta(cod_cuenta, es_sucursal);
    }

    @Override
    public Banco findSucursalByCodCuenta(String cod_cuenta, Integer sucursal_id) {
       return bancoDao.findSucursalByCodCuenta(cod_cuenta, sucursal_id);
    }

    @Override
    public DefaultComboBoxModel combo() {
       return bancoDao.combo();
    }
    
}
